//
//  z_UI.h
//  Template
//
//  Created by zhoubl on 13-6-5.
//  Copyright (c) 2013年 cdeledu. All rights reserved.
//

#import "z_Precompile.h"

@interface z_UI : NSObject

//uicolor 生成 uiimage
+ (UIImage *) createImageWithColor: (UIColor *) color;

//返回随即数
+ (NSInteger)getRandomNumber:(NSInteger)min maxNumber:(NSInteger)max;

//转换颜色色值
+ (UIColor *)colorWithHexString:(NSString *)stringToConvert;

//转换颜色色值  by liaoyp
+ (UIColor *)colorWithImage:(NSString *)imageName;

//返回UILabel高度
+ (CGSize)returnHeightFloat:(NSString *)str frontSize:(UIFont*)front frontWidth:(CGFloat)frontwidth;

//返回字节大小
+ (NSString*)getSize:(NSNumber*)number;

//返回UTF-8的编码
+ (NSString *)encode:(NSString *)s;

//从网络下载图片
+(UIImage *) getImageFromURL:(NSString *)fileURL;

//将图片保存到本地
+(void) saveImage:(UIImage *)image withFileName:(NSString *)imageName ofType:(NSString *)extension inDirectory:(NSString *)directoryPath;
@end
